﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace mal.Web.Silverlight.MEF.Core
{
    public class Module : INotifyPropertyChanged
    {
        #region Properties

        private string m_Package;
        public string Package
        {
            get
            {
                return this.m_Package;
            }
            set
            {
                this.m_Package = value;

                RaisePropertyChanged("Package");
            }
        }

        private string m_Title;
        public string Title
        {
            get
            {
                return this.m_Title;
            }
            set
            {
                this.m_Title = value;

                RaisePropertyChanged("Title");
            }
        }

        private string m_Uri;
        public string Uri
        {
            get
            {
                return this.m_Uri;
            }
            set
            {
                this.m_Uri = value;

                RaisePropertyChanged("Uri");
            }
        }  
        #endregion

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propName)
        {
            var handler = this.PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propName));
            }
        }

        #endregion
    }
}
